//
//  YDate.h
//  YuiKe
//
//  Created by yuike6 yuike6 on 11-10-11.
//  Copyright 2011年 yuike. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonHMAC.h>

@interface NSDate (NSDateExtension)


+ (NSString *) date2string:(NSDate *) _date;

+ (NSDate *) string2date:(NSString *) _string;

+ (NSString *) currectDay;

/*
 返回当前周的周末
 */
- (NSDate *)endOfWeek;

- (NSUInteger)getDay;

- (NSDate *)beginningOfMonth;


/*
  返回当前周的开始开
 */
- (NSDate *)beginOfWeek;

- (NSDate *)endOfMonth;

- (NSDate *)dateAfterHour:(int)hour;

- (NSDate *)dateAfterDay:(int)day;

- (NSDate *)dateafterMonth:(int)month;

- (NSUInteger)getMonth;

- (NSUInteger)getYear;

- (int )getWeekOfYear;


@end
        